/**
 * Created by Administrator on 2017/11/9.
 */
import React from 'react';
import { Collapse } from 'antd';
import css from './index.less';
import Icon from 'components/icon';
const { Panel } = Collapse;

class LogGroup extends React.Component {
  constructor(props) {
    super(props);
    this.state = {

    };

  }

  render() {
    const { isActive, } = this.props;
    const iconProps = {
      className: css.firstIcon,
      type: isActive ? 'icon-press-up' : 'icon-addition',
    };
    const props = {
      ...this.props,
      className: css.panel,
      header: <div className={css.title}><Icon {...iconProps}/><Icon type="icon-group" className={css.icon}/>
        <p>{this.props.title} </p></div>,
    };
    return (
      <Panel {...props} />
    );
  }

}

export default LogGroup;






















